<#assign security=JspTaglibs["http://www.springframework.org/security/tags"] /> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>搜索引擎演示</title>
<link href="${base}/scripts/validate/jquery.validate.css" type="text/css" rel="stylesheet" />
<script src="${base}/scripts/validate/jquery.validate.js" type="text/javascript"></script>
<script src="${base}/scripts/validate/messages_cn.js" type="text/javascript"></script>
<script>
	$(document).ready(function(){
		$("#search_text").focus();
		$("#inputForm").validate();
	});
</script>
</head>
<body>
<div>
	<form action="${base}/article/article/search.shtml" method="post" id="inputForm">
		<input id="search_text" name="search_text" class="required"/><input type="submit" value="全文检索" class="button"/>
	</form>
</div>
<div>
	<table class="listView">
	<#if allArticleItem??>
			<tr>
				<td nowrap="nowrap">文章类型&nbsp;</td>
				<td nowrap="nowrap">标题&nbsp;</td>
				<td>内容&nbsp;</td>
				<td>作者&nbsp;</td>
			</tr>
		<#list allArticleItem as list>
				<tr>
					<td nowrap="nowrap">${list.article.articletype?default("")}&nbsp;</td>
					<td nowrap="nowrap">
					<#if list.title?default("")?length lt 25 >  
					${list.title?default("")} 
					<#else> 
					     ${list.title?default("")[0..21]}......
					</#if>
					&nbsp;
					</td>
					<td>
					<#if list.content?default("")?length lt 35 >   
					${list.content?default("")} 
					<#else> 
					     ${list.content?default("")[0..31]}......
					</#if>
					&nbsp;</td>
					<td>${list.author?default("")}&nbsp;</td>
				</tr>
		 </#list>
	 <#else>
	 <tr><td>没有匹配的记录！</td></tr>
	 </#if>
	</table>
</div>
</body>
</html>